package com.jeejam.product.sdk.api;

import com.jeejam.framework.base.pojo.TreePager;
import com.jeejam.product.sdk.dto.FilterDto;

import java.util.List;

public interface IFilterService {

	public void save(FilterDto filterDto);

	public void update(FilterDto filterDto);

	public FilterDto getById(int id);
	
	public List<FilterDto> selectRoot();
	
	public List<FilterDto> selectRootWithoutChildren();
	
	public List<FilterDto> selectRootByPage(int page, int pageSize);
	
	public List<FilterDto> selectChildren(int id);
	
	public TreePager getTreePager(int currentPage, int pageSize);
	
	public int countsWithRoot();
	
	public void deleteWithChildren(int id);
}
